import tkinter as tk
from GUI import FileSharingApp


def main():
    root = tk.Tk()
    app = FileSharingApp(root)
    root.protocol("WM_DELETE_WINDOW", lambda: (app.stop_sharing(), root.destroy()))
    root.mainloop()


if __name__ == "__main__":
    main()